package com.devin.service.impl;

import com.devin.model.entity.Room;
import com.devin.repository.RoomRepository;
import com.devin.repository.base.BaseRepository;
import com.devin.service.RoomService;
import com.devin.service.base.AbstractCrudService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Optional;

/**
 *  
 *  @author devin
 *  @date 2020-04-14 19:10
 *  @version 1.0.2
*/

@Service
public class RoomServiceImpl extends AbstractCrudService<Room, Long> implements RoomService {


    private final RoomRepository roomRepository;


    protected RoomServiceImpl(BaseRepository<Room, Long> repository, RoomRepository roomRepository) {
        super(repository);
        this.roomRepository = roomRepository;
    }

//    @Override
//    public Optional<Room> getById(Long roomId) {
//
//        return roomRepository.findById(roomId);
//
//    }
}
